package com.shop.front.service.user;

import com.shop.front.dao.user.SnapRedPinkSQLDao;
import com.shop.web.response.BaseResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Slf4j
@Transactional
public class SnapRedPinkService {

    @Autowired
    private SnapRedPinkSQLDao snapRedPinkSQLDao;

    public BaseResponse pageUserBill(Long userId) {
        Page page = snapRedPinkSQLDao.pageUserBill(userId);
        return new BaseResponse(page);
    }


}
